using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SampleApp.Domain.Map
{
    public class SysMenuMap : EntityTypeConfiguration<SysMenu>
    {
        public SysMenuMap()
        {
            this.ToTable("exp_t_application_menu");
            this.HasKey(t => t.MenuID);
            this.Property(t => t.MenuID).HasColumnName("menuid");
            this.Property(t => t.MenuName).HasColumnName("menuname");
            this.Property(t => t.MenuIcon).HasColumnName("icon");
            this.Property(t => t.ParentMenuID).HasColumnName("parentid");
            this.Property(t => t.Url).HasColumnName("url");
            this.Property(t => t.SortBy).HasColumnName("sortno");
            this.Property(t => t.Remark).HasColumnName("remark");
        }
    }
}

